#include "timestamp.h"

struct TimeStamp_st
{
    uint64_t systemTimestamp;
    uint64_t localTimestamp;
};

static struct TimeStamp_st timestamp;

/**
  * @brief  get timestamp of system
  * @param  void
  * @retval am_time_tick : timestamp of system
  */
uint64_t getSystemTimestamp(void)
{
    return timestamp.systemTimestamp;
}

uint64_t getLocalTimestamp(void)
{
    return timestamp.localTimestamp;
}

/**
  * @brief  100us tick
  * @param  void
  * @retval void
  */
void systemTimestampAdd(void)
{
    timestamp.systemTimestamp++;
    timestamp.localTimestamp++;
}